<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/12/18
  Time: 8:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
    <table border="1">
        <tr>
            <td>花卉编号</td>
            <td>花卉名称</td>
            <td>花卉数量</td>
            <td>花卉品种</td>
            <td>花卉产地</td>
            <td>花卉状态</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${flowerList}" var="item">
            <tr>
                <td>${item.flowerId}</td>
                <td>${item.flowerName}</td>
                <td>${item.flowerNumber}</td>
                <td>${item.flowerType}</td>
                <td>${item.flowerLocation}</td>
                <td>${item.state}</td>
                <td><a href="detail?id=${item.flowerId}"><input type="button" value="详情"></a></td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
<style>
    table{
        text-align: center;
    }
</style>
